package com.ct.book.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class PageResult<T> {
    private Integer total;
    private List<T> records;
    private PageRequest pageRequest;

    public PageResult(Integer total, List<T> records) {
        this.total = total;
        this.records = records;
    }
}
